package com.zhangwei.fresco.apdater;

import android.content.Context;
import android.net.Uri;
import android.widget.TextView;

import com.facebook.drawee.view.SimpleDraweeView;
import com.zhangwei.fresco.R;
import com.zhangwei.fresco.base.ItemView;
import com.zhangwei.fresco.bean.HomeItems;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * @version V1.0
 * @description:
 * @title: Expands
 * @package com.zhangwei.fresco.apdater
 * @author: zhangwei
 * @date: 2015-12-25 下午2:49
 */

@EViewGroup(R.layout.item_list_home_layout)
public class HomeItemView extends ItemView<HomeItems> {

    @ViewById
    SimpleDraweeView itemHomeImg;
    @ViewById
    TextView itemHomeContent;
    @ViewById
    TextView itemHomeLikes;

    public HomeItemView(Context context) {
        super(context);
    }

    @Override
    public void bind(HomeItems item) {
        super.bind(item);
        itemHomeImg.setImageURI(Uri.parse(item.getUrl()));
    }

}
